namespace CSharpPro._1027;

using System;

public abstract class UserTest
{
    public abstract void M1();
    public abstract int M2(string input);
    public abstract bool M3(int num1, int num2);
}
public class ConcreteUserTest : UserTest
{
  
    public override void M1()
    {
        Console.WriteLine("子类实现的M1方法：执行无参操作");
    }
    
    public override int M2(string input)
    {
        if (string.IsNullOrEmpty(input))
            return 0;
        return input.Length;
    }
    
    public override bool M3(int num1, int num2)
    {
        return num1 > num2;
    }
}

